<?php


namespace App\Helpers;


class ResponseHelper
{
    public static function json($code, $msg, $data = null)
    {
        return response()->json([
            "code" => $code,
            "msg" => $msg,
            "data" => $data
        ]);
    }
}
